package sample;

public class ApplicationAraba {
	public static void main(String[] args) {
		Araba audi = new Araba("Audi", "A8", "Siyah", 6);
		Araba ford = new Araba("Ford", "Fiesta", "Beyaz", 5);

		Araba[] arabas = { audi, ford };

		for (Araba araba : arabas) {

			System.out.println("Marka : " + araba.getMarka());
			System.out.println("Model : " + araba.getModel());
			System.out.println("Renk : " + araba.getRenk());
			System.out.println("Vites : " + araba.getVites());
		}

		Araba.vites = 0;

		for (Araba araba : arabas) {

			System.out.println("Marka : " + araba.getMarka());
			System.out.println("Model : " + araba.getModel());
			System.out.println("Renk : " + araba.getRenk());
			System.out.println("Vites : " + araba.getVites());
		}
	}
}
